import request from '../index';

const postApi = {
    settleGame: (data) => {
        return request({
            url: '/settleGame',
            method: 'post',
            data
        })
    },

    // 更新主播积分池
    updateAnchorData: (data) => {
        return request({
            url: '/update_anchorData',
            method: 'post',
            data: {
                type: 'update-point-pool',
                ...data
            }
        })
    },

    // 更新玩家军工分
    updatePointsMilitary: (data) => {
        return request({
            url: '/update_pointsMilitary',
            method: 'post',
            data
        })
    },

    // 更新国家数据
    updateCountry: (data) => {
        return request({
            url: '/update_country',
            method: 'post',
            data
        })
    },
}

export default postApi;
